<!DOCTYPE html>
<html>
    <head>
        <meta charset='UTF-8'>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title><?php echo $settings['site_name'] ?> - <?php echo $settings['short_intro'] ?></title>
        <meta name="keywords" content="<?php echo $settings['site_keywords'] ?>" />
        <meta name="description" content="<?php echo $settings['short_intro'] ?>" />
        <?php $this->load->view('common/header-meta'); ?>

        <style>
            .info_detail{



            }
            .info_detail .title{
                font-size: 18px;
                text-align: center;
                font-weight: 600;
                padding: 10px;
            }
            .info_detail .times{
                text-align: center;
                padding: 10px;
                color: #999999;
            }
            .info_detail .info_detail_content img{text-align: center;}
            .info_detail .info_detail_content{
                line-height: 32px;
                font-size: 16px;
                color: #000;
            }
            .info_detail .info_detail_content *{
                max-width: 100%;
                padding: 5px;
            }
        </style>
    </head>
    <body>
        <?php $this->load->view('common/header'); ?>
        <div class="container">
            <div class="row">
                <div class="col-md-3">

                    <div class="panel">
                        <div class="panel-heading" style="background: #0575bd; ">
                            <div class="panel-title" style="color: #ffffff;font-weight: 600;">信息公开</div></div>
                        <div class="panel-body">
                            <ul>
                                <?php foreach ($cate_list as $v): ?>
                                    <li class="media topic-list"><a href='<?php echo site_url("infoArt/index?cateid={$v['id']}"); ?>'>  <?php echo $v['cate_name']; ?></a></li>
                                <?php endforeach; ?>
                            </ul>
                        </div>
                    </div>
                </div><!-- /.col-md-8 -->
                <div class="col-md-9">
                    <div class="panel">
                        <div class="panel-heading" style="border-bottom: 2px #0575bd solid;">
                            <div class="panel-title" style="color: #0575bd;font-weight: 600;"><?php echo $cur_cate['cate_name'] ?></div>
                        </div>
                        <div class="panel-body info_detail">
                            <div class="title">
                                <?php echo $info_detail['title']; ?>
                            </div>
                            <div class = "times">发布时间：<?php echo date("Y/m/d", $info_detail['addtime']); ?> 浏览次数：<?php echo $info_detail['viewtimes']; ?></div>
                            <hr style = "">
                            <div class = "info_detail_content">
                                <?php echo ($info_detail['content']);
                                ?>
                            </div>
                            <!--可能有附件-->
                        </div>
                        <div class="panel-footer">
                            <?php if ($info_about['prev']): ?>
                                <div style="    padding: 5px;"><sapn>上一篇：</sapn><a href="<?php echo site_url("infoArt/detail?artid={$info_about['prev']['id']}&cateid={$info_about['prev']['cateid']}"); ?>"><?php echo ($info_about['prev']['title']); ?></a></div>
                            <?php endif ?>
                            <?php if ($info_about['next']): ?>
                                <div style="    padding: 5px;"><sapn>下一篇：</sapn><a href="<?php echo site_url("infoArt/detail?artid={$info_about['next']['id']}&cateid={$info_about['next']['cateid']}"); ?>"><?php echo ($info_about['next']['title']); ?></a></div>
                                    <?php endif ?>
                        </div>
                    </div>

                </div><!-- /.col-md-8 -->
            </div><!-- /.row -->
        </div><!-- /.container -->

        <?php $this->load->view('common/footer'); ?>
        <script>
            $(function () {
                var page = 2;
                $("#getmore").click(function () {
                    var data;
                    $.get('<?php echo site_url(); ?>/home/getmore/' + page, function (data) {
                        page++;
                        $("#topic_list").append(data);
                    });
                    //$("#infolist").after(tr);
                });
            });

        </script>

    </body>
</html>